<?php


include_once($_SERVER['DOCUMENT_ROOT'].'Exiastore/Model/BDD.php');
$bdd = new BDD();

$req = "INSERT INTO article (etatArticle, categorie, auteur, editeur, article, description, prix, stock, seuilReappro, dateEdition) VALUES (:etatArticle, :categorie, :auteur, :editeur, :article, :description, :prix, :stock, :seuilReappro, :dateEdition)";
        $rslt = $this->bdd->getBDD()->prepare($req);
        $rslt->execute(array(
            ":etatArticle" => $_POST['etatArticle'], 
            ":categorie" =>  $_POST['etatArticle'], 
            ":auteur" =>  $_POST['etatArticle'], 
            ":editeur" =>  $_POST['etatArticle'], 
            ":article" =>  $_POST['etatArticle'] , 
            ":description"=>  $_POST['etatArticle'],
            ":prix"=>  $_POST['etatArticle'],
            ":stock"=>  $_POST['stock'],
            ":seuilReappro"=>  $_POST['seuilReappro'],
            ":dateEdition"=>  $_POST['date']));

?>